package com.file.controller;

import com.file.utiltools.basic.ValueUtil;
import org.apache.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.portlet.bind.annotation.RenderMapping;

/**
 * Created by Sfwn on 2015/9/10.
 */
@RestController
@Controller
public class HelloController {
    @RequestMapping(value = "/test",method = RequestMethod.GET ,produces="text/html;charset=utf-8")
    public String hello() {
        System.out.println("hello");
        return ValueUtil.toJson(HttpStatus.SC_ACCEPTED,"你好");
    }
}